package cc.wsyw126.java.lambda.java8lambda.base;

/**
 * @author richard
 */
public final class Track {

	private final String name;
	private final int length;

	public Track(String name, int length) {
		this.name = name;
		this.length = length;
	}

	/**
	 * ����
	 * 
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * ʱ��
	 * 
	 * @return the length of the track in milliseconds.
	 */
	public int getLength() {
		return length;
	}

	public Track copy() {
		return new Track(name, length);
	}
}
